package com.itemdoc.organ.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.itemdoc.organ.service.SysUserService;
import com.itemdoc.organ.util.Result;

import lombok.AllArgsConstructor;

/**
 * @author Administrator
 */
@Controller
@AllArgsConstructor
@RequestMapping("/sysuser")
public class SysUserController {

	public SysUserService SuService;
	/**
	 * sysuser/findSysUserlist
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	@ResponseBody
	@GetMapping(value = "/findSysUserlist")
	public Result findSysUserlist() throws Exception {
		return new Result(200, "成功", SuService.findSysUserlist());
	}
}
